<%@ page import="org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils" %>
<html>
    <head>
        <meta name="layout" content="thick_sidebar" />
        <content tag="title">ibiblio terasaur - Gigabytes to terabytes</content>
    </head>
    <body>
<%
if (SpringSecurityUtils.ifAnyGranted('ROLE_ADMIN, ROLE_CAN_CREATE_ITEM')) { %>
    <tmpl:/home/user_dashboard />
<%
} else {
    try {
%>
    <wcm:widget space="terasaur" path="widgets/homepage-content"/>
<%
    } catch (Exception e) {
%>
    <div><h2 class="entry-title full-title">Welcome to terasaur</h2></div>
<%
    }
}
%>
    </body>
</html>
